/* ============================================================
   CarZoon — Single Car Detail Page
   ============================================================ */

/* ── Wrapper ── */
.czs-wrap {
    max-width: 1160px;
    margin: 0 auto;
    padding: 24px 20px 60px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1a1a2e;
}

/* ── Not found ── */
.czs-not-found {
    padding: 48px;
    text-align: center;
    font-size: 16px;
    color: #64748b;
}
.czs-not-found a { color: #003399; font-weight: 600; }

/* ── Breadcrumb ── */
.czs-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 18px;
}
.czs-breadcrumb a { color: #003399; text-decoration: none; font-weight: 600; }
.czs-breadcrumb a:hover { text-decoration: underline; }
.czs-bc-sep { color: #c0c8d8; font-size: 16px; }

/* ── Page header ── */
.czs-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}
.czs-page-title {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: .3px;
    line-height: 1.2;
}
.czs-page-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.czs-reg-plate {
    display: inline-block;
    background: #ffd84c;
    border: 2.5px solid #f0b800;
    border-radius: 8px;
    padding: 4px 14px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #111;
    text-transform: uppercase;
}
.czs-loc-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #475569;
    background: #f1f5f9;
    border-radius: 99px;
    padding: 4px 10px;
}
.czs-cond-pill {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 99px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.czs-page-header-right { flex-shrink: 0; text-align: right; }
.czs-header-price { display: flex; flex-direction: column; align-items: flex-end; }
.czs-price-label { font-size: 12px; color: #64748b; font-weight: 600; margin-bottom: 2px; }
.czs-price-amount {
    font-size: 28px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1;
}
.czs-price-sub { font-size: 12px; color: #94a3b8; margin-top: 3px; }

/* ── Layout ── */
.czs-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 28px;
    align-items: start;
}
.czs-col-main { display: flex; flex-direction: column; gap: 28px; }
.czs-col-sidebar { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 80px; }

/* ── Gallery ── */
.czs-main-img-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #0f172a;
    aspect-ratio: 16/10;
}
.czs-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity .25s;
}
.czs-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15,23,42,.65);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .18s;
    z-index: 2;
}
.czs-nav-btn:hover { background: rgba(0,51,153,.85); }
.czs-nav-prev { left: 14px; }
.czs-nav-next { right: 14px; }
.czs-img-counter {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(0,0,0,.52);
    color: #fff;
    border-radius: 99px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
}
.czs-thumbs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-top: 10px;
}
.czs-thumb {
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 9px;
    cursor: pointer;
    border: 2.5px solid transparent;
    transition: border-color .15s;
    width: 100%;
    display: block;
}
.czs-thumb:hover { border-color: #003399; }
.czs-thumb-active { border-color: #003399 !important; }
.czs-no-photo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16/10;
    background: #f1f5f9;
    border-radius: 16px;
    color: #94a3b8;
    font-size: 15px;
    gap: 12px;
}

/* ── Action pills ── */
.czs-action-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.czs-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a !important;
    background: #fff;
    border: 1.5px solid #d1d9e8;
    cursor: pointer;
    text-decoration: none;
    transition: border-color .18s, background .18s, color .18s;
    font-family: inherit;
}
.czs-pill:hover { border-color: #003399; color: #003399; background: #eff4ff; }
.czs-pill-primary { background: #003399; color: #fff !important; border-color: #003399; }
.czs-pill-primary:hover { background: #002580; color: #fff; border-color: #002580; }

/* ── Sections ── */
.czs-section {}
.czs-section-title {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: .7px;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0f172a;
}

/* ── Vehicle details table ── */
.czs-details-table {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}
.czs-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 16px;
    border-bottom: 1px solid #f0f4f8;
    border-right: 1px solid #f0f4f8;
    gap: 12px;
}
.czs-detail-row:nth-child(2n) { border-right: none; }
.czs-detail-row:nth-last-child(-n+2) { border-bottom: none; }
.czs-detail-key {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    flex-shrink: 0;
}
.czs-detail-val {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    text-align: right;
}

/* ── Description ── */
.czs-description {
    font-size: 14px;
    color: #334155;
    line-height: 1.8;
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid #003399;
}

/* ── Features grid ── */
.czs-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.czs-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    padding: 9px 12px;
}
.czs-check-icon { color: #003399; flex-shrink: 0; }

/* ── Enquiry form ── */
.czs-enquiry-section {
    background: #f8fafc;
    border-radius: 16px;
    padding: 24px;
}
.czs-enquiry-inner { display: flex; flex-direction: column; gap: 18px; }
.czs-enquiry-seller {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}
.czs-seller-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #003399, #2563eb);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 800; color: #fff;
    flex-shrink: 0;
}
.czs-seller-name { font-size: 15px; font-weight: 700; color: #0f172a; }
.czs-seller-type { font-size: 12px; color: #94a3b8; }
.czs-form { display: flex; flex-direction: column; gap: 14px; }
.czs-form-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.czs-form-field { display: flex; flex-direction: column; gap: 5px; }
.czs-form-field label { font-size: 12px; font-weight: 700; color: #334155; }
.czs-form-field label span { color: #dc2626; }
.czs-form-field input,
.czs-form-field textarea {
    border: 1.5px solid #d1d9e8;
    border-radius: 9px;
    padding: 10px 13px;
    font-size: 14px;
    color: #0f172a;
    background: #fff;
    outline: none;
    font-family: inherit;
    transition: border-color .18s;
    width: 100%;
    box-sizing: border-box;
}
.czs-form-field textarea { resize: vertical; min-height: 100px; }
.czs-form-field input:focus,
.czs-form-field textarea:focus { border-color: #003399; }
.czs-terms-row {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 13px;
    color: #475569;
    cursor: pointer;
    line-height: 1.5;
}
.czs-terms-row input { width: 16px; height: 16px; accent-color: #003399; flex-shrink: 0; margin-top: 2px; }
.czs-terms-row a { color: #003399; }
.czs-submit-btn {
    padding: 13px 28px;
    background: #003399;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    font-family: inherit;
    transition: background .18s;
}
.czs-submit-btn:hover { background: #002580; }
.czs-submit-btn:disabled { opacity: .6; cursor: not-allowed; }
.czs-form-msg { font-size: 14px; font-weight: 600; min-height: 18px; margin-top: 4px; }
.czs-form-msg.is-success { color: #059669; }
.czs-form-msg.is-error   { color: #dc2626; }

/* ── Sidebar cards ── */
.czs-sidebar-card {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px 20px;
}
.czs-sc-title {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 14px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* Seller card */
.czs-sc-seller-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f4f8;
}
.czs-seller-avatar-lg { width: 52px; height: 52px; font-size: 22px; }
.czs-sc-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 11px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    text-decoration: none;
    font-family: inherit;
    transition: opacity .18s;
    margin-bottom: 8px;
    justify-content: center;
}
.czs-sc-btn:last-child { margin-bottom: 0; }
.czs-sc-btn-phone { background: #003399; color: #fff !important; }
.czs-sc-btn-phone:hover { opacity: .88; color: #fff; }
.czs-sc-btn-msg   { background: #f0f4f8; color: #0f172a !important; }
.czs-sc-btn-msg:hover { background: #e2e8f0; }

/* Facts card */
.czs-facts-list { display: flex; flex-direction: column; gap: 0; }
.czs-fact-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid #f0f4f8;
    font-size: 13px;
}
.czs-fact-row:last-child { border-bottom: none; }
.czs-fact-key { color: #64748b; }
.czs-fact-val { font-weight: 700; color: #0f172a; text-align: right; }

/* Location card */
.czs-location-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}
.czs-location-text svg { color: #003399; flex-shrink: 0; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .czs-layout { grid-template-columns: 1fr; }
    .czs-col-sidebar { position: static; display: grid; grid-template-columns: repeat(2, 1fr); }
    .czs-features-grid { grid-template-columns: repeat(2, 1fr); }
    .czs-details-table { grid-template-columns: 1fr; }
    .czs-detail-row { border-right: none !important; }
    .czs-detail-row:nth-last-child(-n+2) { border-bottom: 1px solid #f0f4f8; }
    .czs-detail-row:last-child { border-bottom: none; }
}
@media (max-width: 640px) {
    .czs-page-header { flex-direction: column; }
    .czs-page-header-right { text-align: left; }
    .czs-price-amount { font-size: 24px; }
    .czs-thumbs { grid-template-columns: repeat(4, 1fr); }
    .czs-form-row { grid-template-columns: 1fr; }
    .czs-features-grid { grid-template-columns: repeat(2, 1fr); }
    .czs-col-sidebar { grid-template-columns: 1fr; }
    .czs-wrap { padding: 16px 14px 40px; }
}
